package com.steve.summary.saga.common.model;

import com.steve.summary.saga.common.status.OrderStatus;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * @Author: STEVE
 * @Description: 订单实体类
 * @since: 2025-05-27
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {

    /**
     * 订单ID
     */
    private Long id;
    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 产品ID
     */
    private Long productId;
    /**
     * 产品数量
     */
    private int amount;
    /**
     * 订单总价
     */
    private BigDecimal price;
    /**
     * 订单状态
     */
    private OrderStatus status;

}
